<?php
namespace Home\Model;
use Think\Model\ViewModel;

class AgentBrandViewModel extends ViewModel
{
    public $viewFields = array(
        'brand' => array(
            'b_name','id',
            '_type' => 'LEFT'
        ),
         'agent_brand' => array(
            'agent_id','brand_id' ,'rank_id' ,
            '_on' => ' agent_brand.brand_id = brand.id' ,
            '_type' => 'RIGHT'
        ),
    );
}